package com.aek.aekdroid;

import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;

public class MatchWidget extends BaseWidget {
	public static final String TAG = "MatchWidget";
	protected int widgetType = R.layout.widget;
	protected int launcher = R.id.widgetIcon;

	@Override
	public void onReceive(Context context, Intent intent) {
		super.onReceive(context, intent);
		super.widgetType = this.widgetType;
		super.launcher = this.launcher;
		MyLog.d(TAG, "Widget receive update " + intent.getAction());
		AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
		this.onUpdate(context, appWidgetManager, appWidgetManager.getAppWidgetIds(new ComponentName(context, MatchWidget.class)));
	}

}
